Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  All  Telephone  Settings  for  a  User  Account  

 Content of List All Telephone Settings for a User Account.vbs
MD5 Hash: 71C6982A16385A4BCDE3CE90778EFA1F
' Description: Displays all the telephone attribute values for the MyerKen Active Directory user account.


On Error Resume Next

Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")

WScript.Echo "Home Phone: " & objUser.homePhone
WScript.Echo "Pager: " & objUser.pager
WScript.Echo "Mobile phone: " & objUser.mobile
WScript.Echo " IP Phone: " & objUser.ipPhone
WScript.Echo "Information: " & objUser.info
WScript.Echo " Fax Number: " & objUser.facsimileTelephoneNumber

WScript.Echo "Other Home Phone:"
For Each strValue in objUser.otherHomePhone
WScript.Echo strValue
Next

WScript.Echo "Other Pager:"
For Each strValue in objUser.otherPager
WScript.Echo strValue
Next

WScript.Echo "oOther Mobile Phone:"
For Each strValue in objUser.otherMobile
WScript.Echo strValue
Next

WScript.Echo "Other IP Phone:"
For Each strValue in objUser.otherIpPhone
WScript.Echo strValue
Next

WScript.Echo "Other Fax Number:"
For Each strValue in objUser.otherFacsimileTelephoneNumber
WScript.Echo strValue
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a